<%@page import="org.upt.dcda.presentation.SessionAttributes"%>
<%@ taglib prefix="stripes"
	uri="http://stripes.sourceforge.net/stripes.tld"%>
<%
if(SessionAttributes.isLoggedIn(request)) {
	response.sendRedirect("index.jsp");
} else {
%>
<stripes:layout-render name="layout/default.jsp"
	pageTitle="Using A Layout">
	
	<stripes:layout-component name="pageTitle">
	Bookstore - login
 	</stripes:layout-component>
 	
 	<stripes:layout-component name="html_head">
 	
 	 </stripes:layout-component>
 	 
 	 <stripes:layout-component name="contents">
 	 
		<form action="login" method="post">
			Email: <input type="text" name="email"><br>
			Password: <input type="password" name="password"><br>
			<input type=submit value="Login">
		</form>

 	 </stripes:layout-component>
	
</stripes:layout-render>
<%
}
%>